package com.coding.service;

import com.coding.dto.RestBean;
import com.coding.entity.Message;
import com.coding.entity.vo.MsgVO;

import java.util.List;

/**
 * @author Cynicism
 * @version 1.0
 * @project DyApp
 * @description
 * @date 2024/6/23 22:59:33
 */
public interface MessageService {
    boolean canSendMessage(Long senderId, Long receiverId);
    void saveMessage(MsgVO message);

    RestBean<List<Message>> getMessage(Long senderId, Long receiverId, Integer pageNum, Integer pageSize);

}
